<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        Array.prototype.mypush = function(...args){
            for(let i = 0;i<args.length;i++){
                this[this.length] = args[i]
            }
            return this.length
        }
        arr = []
        arr.push(1)
        console.log(arr);
    </script>
</body>
</html>